nvcc -o main main.cu
d="data.txt"
if [ $? -eq 0 ]; then
  :>$d
      for cnt in {0..9}
      do
        s=$(./main | tail -n 2)
        echo $s
        echo $s >> $d
      done
else
  echo "failed"
fi
